package com.demo.design.stractural.decorator;

import com.demo.design.stractural.decorator.impl.LowanDecorator;
import com.demo.design.stractural.decorator.impl.RealComponent;

public class DecoratorMain {

    public static void main(String[] args) {
        // 原生对象
        Component component = new RealComponent();
        // 装饰
        Component decorator = new LowanDecorator(component);
        // 装饰后结果
        decorator.operate();
    }
}
